from django.db import models
from base_utils.models import BaseModel


# Create your models here.
class GoodsModel(BaseModel):
    name = models.CharField(verbose_name="商品名", max_length=256)
    price = models.FloatField(verbose_name="商品价格")
    inventory = models.IntegerField(verbose_name="库存", default=0)
    goods_class = models.IntegerField(verbose_name="所属类型",default=1)

    class Meta:
        db_table = "goods"
